Skip to content

Decode scratch-backed browser geometry in bounded parallel batches - #311

Draft
mahach666 wants to merge 2 commits into
codex/rvt-segment-spoolingfrom
codex/rvt-browser-parallel-geometry
Draft

mahach666 wants to merge 2 commits into
codex/rvt-segment-spoolingfrom
codex/rvt-browser-parallel-geometry

Conversation

@mahach666

@mahach666 mahach666 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

  • Prepare at most four geometry blocks on the reader thread and decode the prepared bytes on available WebAssembly threads.
  • Commit geometry and report progress in source order on the reader thread. Scratch-backed name scans keep their stream access on that same thread.
  • Keep the existing one-block path on single-threaded WebAssembly and make the decoder's reused exception thread-local. This PR is stacked on Read framed RVT partitions through scratch storage #308.

Validation

  • The full .NET 10 suite passed 12,040 tests and skipped 452 optional tests. A targeted test requires two simultaneous decodes and checks the order of reads, commits, and progress.
  • Chromium with a threaded .NET 10 runtime opened the public rstbasicsampleproject.rvt sample from OPFS, rendered 129 pages and 84,494 triangles, and loaded the element properties. The test observed only same-origin static asset requests.
  • Successful opens at one and four workers produced identical scene package files. The bounds trap also reproduced on the current head with the public structural sample. A symbolized build located the failing stack in the Mono SGen nursery collector, via collect_nursery, simple_nursery_serial_scan_object, and copy_object_no_checks. The trigger is unresolved. The browser profile remains experimental.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant